package com.dao;

import com.core.BaseDao;
import com.entity.model.CustomerNotes;
import com.entity.vo.CustomerNotesVO;
import com.util.webpage.PageData;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CustomerNotesDao extends BaseDao<CustomerNotes> {
    List<CustomerNotes> findNotesList(PageData cond);

    List<CustomerNotesVO> notesList(@Param("type") Integer type, @Param("customerId") Integer customerId);

    CustomerNotes getNotesDetail(@Param("notesId") Integer notesId,@Param("customerId") Integer customerId);

    List<CustomerNotesVO> myNotesList(@Param("customerId") Integer customerId, @Param("notesType") Integer notesType);

    void deleteByCustomerId(@Param("customerId") Integer customerId);
}
